<template>
  <view class="comment-list-page">
    <u-navbar title="商品评价" :border-bottom="false" title-size="35"></u-navbar>
    
    <view class="comment-header">
      <view class="stats">
        <text class="total">0</text>
        <text class="label">条评价</text>
      </view>
      <view class="filter">
        <text>全部</text>
        <u-icon name="arrow-down" size="24" color="#666"></u-icon>
      </view>
    </view>
    
    <view class="empty-comment">
      <text class="title">暂无评价</text>
      <text class="hint">还没有人评价过该商品</text>
    </view>
    
    <view class="comment-stats">
      <view class="stat-item">
        <text class="value">0</text>
        <text class="label">评价总数</text>
      </view>
      <view class="stat-item">
        <text class="value">0%</text>
        <text class="label">好评率</text>
      </view>
      <view class="stat-item">
        <text class="value">0</text>
        <text class="label">有图评价</text>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      goodsId: '' // 可以接收商品ID参数
    }
  },
  onLoad(options) {
    if (options.id) {
      this.goodsId = options.id
    }
  }
}
</script>

<style lang="scss">
.comment-list-page {
  background-color: #f7f7f7;
  min-height: 100vh;
  padding-bottom: 30rpx;
  
  .comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30rpx;
    background-color: #fff;
    border-bottom: 1rpx solid #eee;
    
    .stats {
      .total {
        font-size: 36rpx;
        font-weight: bold;
        color: #333;
      }
      .label {
        font-size: 28rpx;
        color: #666;
        margin-left: 10rpx;
      }
    }
    
    .filter {
      display: flex;
      align-items: center;
      font-size: 28rpx;
      color: #666;
      
      text {
        margin-right: 10rpx;
      }
    }
  }
  
  .empty-comment {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100rpx 0;
    background-color: #fff;
    margin: 20rpx 0;

    
    .title {
      font-size: 32rpx;
      color: #333;
      margin-bottom: 15rpx;
    }
    
    .hint {
      font-size: 26rpx;
      color: #999;
    }
  }
  
  .comment-stats {
    display: flex;
    justify-content: space-around;
    background-color: #fff;
    padding: 30rpx 0;
    margin-top: 20rpx;
    
    .stat-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      
      .value {
        font-size: 36rpx;
        font-weight: bold;
        color: #333;
        margin-bottom: 10rpx;
      }
      
      .label {
        font-size: 26rpx;
        color: #666;
      }
    }
  }
}
</style>